var tempPicChart = echarts.init(document.getElementById('main'));
var option = {
			backgroundColor:'#ffffff',
			title:{
				text:'用户全天温度'
				},
			tooltip:{
				        trigger: 'axis'
				 },
			
			toolbox: {
			        show: true,
			        feature: {
			            dataZoom: {},
			            dataView: {readOnly: false},
			            magicType: {type: ['line']},
			            restore: {},
			            saveAsImage: {}
			        }
			    },
			    
			xAxis: {
				type: 'category',
				name: '',
				boundaryGap : false,
				data:(function() {
					var result = [];
					for(var i = 0;i<24;i++){
						if(i<9) i = "0"+i;
						result.	push(i+":00");				
						}
					return result;
				})()
			},
			
			yAxis:{
				type : 'value',
				min : 0,
				max : 50,
				axisLabel : {
						formatter: '{value}℃'
					},
				},
				
			series:[{
				type :'line',
				name : '温度',
				symbol : 'circle',
				label : {
					normal:{
						show : true,
						formatter :  '{c}℃'
						}
					},
				smooth:'true',
				data : [12,31,15,24,25,21,21,17,19,12,21,24,12,18,17,12,13,11,18,21,15,21,25,21],
				markPoint : {
						data : [{
								type : 'max',
								label :{formatter:'{c}℃'},
								name : '当天最高温度' 
									
							},
							{
								type : 'min',
								label :{formatter:'{c}℃'},
								name : '当天最低温度'}
							]
					},
				
				markLine : {
							data:[
								{type : 'average',name : '平均温度'}
							]
					}
			  }
			  //增加高温报警温度
			  //增加低温报警温度
			]	
		};

